// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Router from 'vue-router'

import home from './components/home/home'
import news from './components/news/news'

Vue.config.productionTip = false

Vue.use(Router)

const routes = [
  { path: '/', component: home },
  { path: '/news', component: news }
]

const router = new Router({
  routes
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
  router
})
